﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage"
	x:Class="EIA.SLClient.ProjectManage.LoginView"
	xmlns:EIA_SLClient_Utility_Converters="clr-namespace:EIA.SLClient.Utility.Converters;assembly=EIA.SLClient.Utility"
	d:DesignWidth="1024" d:DesignHeight="768">
	<UserControl.Resources>
		<local:LoginViewModel x:Key="LoginViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource LoginViewModelDataSource}}">
		<Grid Background="White" Margin="0,74,0,40" Visibility="{Binding IsShow, Converter={StaticResource Bool2VisibilityConverter}}">
			<Grid Width="1024" Height="654" HorizontalAlignment="Center" VerticalAlignment="Center">
				<Image Margin="80,0,490,0" Source="/EIA.SLClient.ProjectManage;component/assets/img/登录_广告.png" Stretch="Fill" Height="390" VerticalAlignment="Center"/>
				<Grid HorizontalAlignment="Right" Margin="0,0,140,0" Width="300" Height="300" VerticalAlignment="Center">
					<TextBox Margin="0,40,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" Text="{Binding LoginId, Mode=TwoWay}"/>
					<PasswordBox Margin="0,86,0,0" FontSize="14.667" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" PasswordChanged="PasswordBox_PasswordChanged"/>
					<Button Content="登    录" Height="30" Margin="0,180,0,0" VerticalAlignment="Top" FontSize="14.667" Command="{Binding LoginCommand}"/>
					<CheckBox Content="记住用户名" HorizontalAlignment="Left" Margin="8,0,0,48" VerticalAlignment="Bottom" IsChecked="{Binding RememberLoginId, Mode=TwoWay}"/>
					<CheckBox Content="下次免登陆" HorizontalAlignment="Right" Margin="0,0,8,48" VerticalAlignment="Bottom" IsChecked="{Binding RememberSession, Mode=TwoWay}"/>
				</Grid>
			</Grid>
		</Grid>
	</Grid>
</UserControl>
